package com.tencent.wxcloudrun.controller;

import com.github.pagehelper.PageInfo;
import com.tencent.wxcloudrun.model.OrderRecharge;
import com.tencent.wxcloudrun.model.OrderRechargeReq;
import com.tencent.wxcloudrun.model.PayReq;
import com.tencent.wxcloudrun.response.R;
import com.tencent.wxcloudrun.service.OrderRechargeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * ClassName: OrderRechargeController
 * Package: com.tencent.wxcloudrun.controller
 * Description:
 *
 * @Date: 2023/1/22 8:34 AM
 * @Author: wht
 */
@Slf4j
@RestController
//@RestController = @Controller + @ResponseBody
@RequestMapping("/admin")
public class OrderRechargeController {

    @Autowired
    OrderRechargeService orderRechargeService;

    @PostMapping("/getOrderRechargeList")
    public <T> R<T> getOrderRechargeList(@RequestBody OrderRechargeReq req) {
        PageInfo orderPage = orderRechargeService.getOrderRechargeList(req);
        return R.successData(orderPage);
    }


}
